using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;

namespace DynamicExcelImportWebControl
{
    public class BaseGridColumn //: WebControl
    {
        public Guid Id { get; set; }
        public string HeaderName { get; set; }
        public string ClientClassName { get; set; }

        public BaseGridColumn()
        {
            Id = Guid.NewGuid();
            ClientClassName = "GridColumn";
        }

        public virtual string RenderInitScript(string Template)
        {
            string init = string.Concat("new ", this.ClientClassName, "('", this.HeaderName, "')");
            return string.Format(Template, init);
        }
    }
}
